arm: mvebu: timer.c: Explicitly move "init_done" var to data section
authorStefan Roese <[email protected]>
Thu, 3 Sep 2015 10:47:07 +0000 (12:47 +0200)
committerLuka Perkov <[email protected]>
Thu, 1 Oct 2015 00:00:02 +0000 (02:00 +0200)
commit787ddb7cd141bda9f0c4818023a2fd684053c15a
tree09356b5ad8a73cd0e60baaf5168a764e2095ee07
parentcefd764222ee0d030b90e594f84eddeac7b9b423
arm: mvebu: timer.c: Explicitly move "init_done" var to data section

As reported by Simon Guinot, commit ade741b3
"arm: mvebu: Call timer_init early before PHY and DDR init" breaks
Kirkwood platforms. As the static variable "init_done" is not
available at that early boot time. This patch moves it to explicitly
to the data section, making it available at that time.

Signed-off-by: Stefan Roese <[email protected]>
Reported-by: Simon Guinot <[email protected]>
Cc: Luka Perkov <[email protected]>
Tested-by: Simon Guinot <[email protected]>
arch/arm/mach-mvebu/timer.c